import request from "@/utils/httpInterceptor";


export const columns = [
  
  {
    title: '厂区',
    key: 'companyName',
    dataIndex: 'companyName',
 
  },
  {
    title: '状态',
    key: 'approvalStatusName',
    dataIndex: 'approvalStatusName',
  
  },
  {
    title: '生产线',
    key: 'lineName',
    dataIndex: 'lineName',
  
  },
  {
    title: '班组',
    key: 'teamNo',
    dataIndex: 'teamNo',
 
  },
  {
    title: '停工开始时间',
    key: 'stopTimeBegin',
    dataIndex: 'stopTimeBegin',
   
  },
  {
    title: '停工结束时间',
    key: 'stopTimeEnd',
    dataIndex: 'stopTimeEnd',
  
  },
  {
    title: '停工时长(分)',
    key: 'duration',
    dataIndex: 'duration',
   
  },
  {
    title: '停工原因',
    key: 'reason',
    dataIndex: 'reason',
    valueType: 'select',
 
  },
  {
    title: '判断结果',
    key: 'finalReason',
    dataIndex: 'finalReason',
    valueType: 'select',
   
  },
  {
    title: '备注',
    key: 'description',
    dataIndex: 'description',
    width: 200,
  },
  {
    title: '添加人',
    key: 'creatorName',
    dataIndex: 'creatorName',
  
  },
  {
    title: '添加时间',
    key: 'createTime',
    dataIndex: 'createTime',
 
  },
  {
    title: '打印人',
    key: 'printName',
    dataIndex: 'printName',
   
  },
  {
    title: '打印时间',
    key: 'printTime',
    dataIndex: 'printTime',
  },
];
/** 停工记录 */
export const postStoppageList = (params: QueryList) =>
  request("/acid/stoppage-record/page", {
    method: "POST",
    data: params,
    complete: () => {},
  });

